package com.fivefu.core.hik.dto.response;

import com.fivefu.core.hik.entity.DbHikRegions;


public class RegionsResp {

    /**
     * 区域名称
     */
    private String name;

    /**
     * 区域唯一标识码
     */
    private String indexCode;

    /**
     * 树编号
     */
    private String treeCode;

    /**
     * 父区域唯一标识码
     */
    private String parentIndexCode;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIndexCode() {
        return indexCode;
    }

    public void setIndexCode(String indexCode) {
        this.indexCode = indexCode;
    }

    public String getTreeCode() {
        return treeCode;
    }

    public void setTreeCode(String treeCode) {
        this.treeCode = treeCode;
    }

    public String getParentIndexCode() {
        return parentIndexCode;
    }

    public void setParentIndexCode(String parentIndexCode) {
        this.parentIndexCode = parentIndexCode;
    }

    public DbHikRegions replaceDbHikRegions(){
        DbHikRegions regions = new DbHikRegions();
        regions.setName(this.name);//区域名称
        regions.setIndexCode(this.indexCode); //区域唯一标识码
        regions.setParentIndexCode(this.parentIndexCode);//父区域唯一标识码
        return regions;
    }
}
